package com.h3c.nem.service;

import com.h3c.nem.entity.TbWorkerExperience;
import com.h3c.nem.vo.TbWorkerExperienceVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * (TbWorkerExperience)表服务接口
 *
 * @author jianhaohui
 * @since 2022-06-01 10:41:08
 */
public interface TbWorkerExperienceService {

    /**
     * 通过ID查询单条数据
     *
     * @param  experienceId
     * @return 实例对象
     */
    TbWorkerExperience queryById(String experienceId);

    /**
     * 分页查询
     *
     * @param tbWorkerExperience 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<TbWorkerExperience> queryByPage(TbWorkerExperience tbWorkerExperience, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param tbWorkerExperience 实例对象
     * @return 实例对象
     */
    TbWorkerExperience insert(TbWorkerExperience tbWorkerExperience);

    /**
     * 修改数据
     *
     * @param tbWorkerExperience 实例对象
     * @return 实例对象
     */
    TbWorkerExperience update(TbWorkerExperience tbWorkerExperience);

    boolean saveWorkerExperienceInfo(List<TbWorkerExperienceVO> tbOfferContactVOList);

}
